package com.example.demo.MyStack.string;

import java.util.Stack;

public class app {
    public static void main(String[] args) {
        String str = "jin tian mei chi fan";
         revers revers =new revers(str);
        System.out.println(revers.deRev());

        Stack stack =new Stack();
        stack.push('a');
        System.out.println();

        for (int i =str.length()-1; i>=0;i--) {
            System.out.print(str.charAt(i));
        }
    }
}
